#:import C kivy.utils.get_color_from_hex

<GridLayout>:
    cols: 2
    spacing: 10
    row_default_height:
        (0.5 * (self.width - self.spacing[0]) -
        self.padding[0])
    row_force_default: True

<Button>:
    background_normal: 'button_normal.png'
    background_down: 'button_down.png'
    font_size: 24
    halign: 'center'
    markup: True

GridLayout:
    padding: 15

    Button:
        id: begin_end_recording
        background_color: C('#3498db')
        text:
            ('[font=Modern Pictograms][size=120]'
            'e[/size][/font]\nBegin recording')
        on_press: app.begin_end_recording()

    GridLayout:
        Button:
            background_color: C('#2ecc71')
            text: '[font=Modern Pictograms][size=80]M[/size][/font]'

        Button:
            background_color: C('#1abc9c')
            text: '[font=Modern Pictograms][size=80]O[/size][/font]'

        Button:
            background_color: C('#27ae60')
            text: '[font=Modern Pictograms][size=80]Q[/size][/font]'

        Button:
            background_color: C('#16a085')
            text: '[font=Modern Pictograms][size=80]j[/size][/font]'

    Button:
        background_color: C('#95a5a6')
        text: '[font=Modern Pictograms][size=120]P[/size][/font]\nPlayback'
        on_press: app.begin_playback()

    Button:
        background_color: C('#e74c3c')
        text: '[font=Modern Pictograms][size=120]X[/size][/font]\nDelete'
        on_press: app.delete_file()
